How to Sort Integer property of item in List<> [closed]

Posted by Lucifer on Stack Overflow See other posts from Stack Overflow or by Lucifer
Published on 2010-03-24T17:14:21Z Indexed on 2010/03/24 17:23 UTC
Read the original article Hit count: 312

Filed under:
|
|

Possible Duplicate:
List<> own comparer

Hi

If I have a list of:

class Product
{
   public int Id;
   public string Name;
   public int OrderId;
}

List<Product> products;

How can I Sort by the OrderId?

Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about list